﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;

namespace ModelSerialize
{
    /// <summary>
    /// 数据模型文件信息
    /// </summary>
    public class ModelPropertyInfo
    {
        /// <summary>
        /// 数据的相对偏移
        /// </summary>
        public long Offset { get; set; }

        /// <summary>
        /// 数据长度
        /// </summary>
        public long Length { get; set; }

        /// <summary>
        /// 属性信息
        /// </summary>
        public PropertyInfo Property { get; set; }
    }

    /// <summary>
    /// 数据模型的信息
    /// </summary>
    public class ModelFileInfo
    {
        /// <summary>
        /// 属性信息
        /// </summary>
        public List<ModelPropertyInfo> PropertyInfos = new List<ModelPropertyInfo>();

        /// <summary>
        /// 内容总长度
        /// </summary>
        public long Length { get; set; }

        /// <summary>
        /// 相关类型
        /// </summary>
        public Type Type { get; set; }
    }
}
